<extend name="Public/base" />
<block name="content">
<div id="content" style="min-width:800px;">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<div class="search-form fr cf">
			<div class="sleft">
				<span class="control-group">
					<select class="form-control" style="width: 200px;" name="activity_id">
						<option value=0>选择活动</option>
						<volist name="activity_list" id="vo">
							<option value='{$vo.activity_id}'>{$vo.activity_name|strip_tags}</option>
						</volist>
					</select>
				</span>
				<span class="control-group">
					<select class="form-control" style="width: 200px;" name="member_id">
						<option value=0>选择推广人</option>
						<volist name="member_list" id="vo">
							<optgroup label="{$vo.team_id|getTeamName}">
								<volist name="vo._child" id="item">
									<option value='{$item.member_id}'>{$item.member_name|strip_tags}</option>
								</volist>
							</optgroup>
						</volist>
					</select>
				</span>
				<input type="text" name="phone" class="search-input" value="{:strip_tags(I('phone'))}" placeholder="请输入电话号码" style="margin-bottom:0;">
				<button class="btn btn-info" id="search_button" url="{:U('ServiceManage/promoteCustomer')}"><i class="icon-search icon-white"></i></button>
			</div>
		</div>
		
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content">
						<notempty name="_list">
							<table class="table table-bordered table-striped with-check">
								<thead>
									<tr>
										<th><input type="checkbox" /></th>
										<th nowrap="nowrap">编号</th>
										<th nowrap="nowrap">姓名</th>
										<th nowrap="nowrap">电话</th>
										<th nowrap="nowrap">推广人</th>
										<th nowrap="nowrap">活动</th>
									</tr>
								</thead>
								<tbody>
									<volist name="_list" id="vo">
										<tr>
											<td class="taskStatus"><input type="checkbox" name="id[]" class="ids"/></td>
											<td class="taskStatus">{$i}</td>
											<td class="taskStatus">{$vo.customer_id|getCustomerNameNew|msubstr=###,0,10,'utf-8',false}</td>
											<td class="taskStatus">{$vo.customer_id|getCustomerName|msubstr=###,0,11,'utf-8',false}</td>
											<td class="taskStatus">{$vo.generalize_member_id|getUserName|msubstr=###,0,11,'utf-8',false}</td>
											<td class="taskStatus">{$vo.activity_id|getActivityName|msubstr=###,0,11,'utf-8',false}</td>
										</tr>
									</volist>
								</tbody>
							</table>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
						<else/>
							<center>{$info_txt|default='没有找到数据，请重新搜素！'}</center>
						</notempty>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	set_value("activity_id",'{:I('activity_id')}');
	set_value("member_id",'{:I('member_id')}');
});
//导航高亮
highlight_subnav("{:U('ServiceManage/promoteCustomer')}");
</script>
</block>